class CreateHourBanks < ActiveRecord::Migration
  def self.up
    create_table :hour_banks do |t|
      t.references :user
      t.float :hours, :default => 0
      t.date :date
    end
    execute "ALTER table hour_banks MODIFY date TIMESTAMP DEFAULT CURRENT_TIMESTAMP"
  end

  def self.down
    drop_table :hour_banks
  end
end
